{if $TS_USER['user']['userid']}

<div class="facebox bbox">
<div class="bc">
<div class="face">
<a href="{tsUrl('user','space',array('id'=>$strUser['userid']))}"><img class="img-circle" title="{$strUser[username]}" alt="{$strUser[username]}" src="{$strUser[face]}" width="48"></a>
</div>

<div class="info">
<h3><a href="{tsUrl('user','space',array('id'=>$strUser['userid']))}">{$strUser[username]}</a></h3>
<div>

{if $strUser['userid']==$TS_USER['user']['userid']}
<a class="btn btn-sm btn-default" href="{tsUrl('user','space',array('id'=>$strUser['userid']))}">我的空间</a>
{else}
<a class="btn btn-mini"  href="javascript:void('0')" onclick="follow('{$strUser['userid']}');">关注</a>
{/if}

</div>
</div>

<div class="clear"></div>

<ul class="other">
<li class="br"><span class="fs14"><a href="{tsUrl('user','group',array('id'=>$strUser['userid']))}">{$strUser['count_group']}</a></span><br />小组</li>
<li class="br"><span class="fs14"><a href="{tsUrl('user','topic',array('id'=>$strUser['userid']))}">{$strUser['count_topic']}</a></span><br />帖子</li>
<li class="br"><span class="fs14"><a href="{tsUrl('user','followed',array('id'=>$strUser['userid']))}">{$strUser['count_followed']}</a></span><br />粉丝</li>
<li><span class="fs14"><a href="{tsUrl('user','follow',array('id'=>$strUser['userid']))}">{$strUser['count_follow']}</a></span><br />关注</li>
</ul>

<div class="clear"></div>

<div class="fmore">

<a href="{tsUrl('user','verify')}">
{if $strUser['isverify']==1}
<img src="{SITE_URL}public/images/rz1.gif" alt="认证用户" title="认证用户" align="absmiddle" />
{else}
<img src="{SITE_URL}public/images/rz2.gif" alt="未认证用户" title="未认证用户" align="absmiddle" />
{/if}
</a>
<br />
角色：<a href="{tsUrl('user','role')}">{$strUser['rolename']}</a> <span style="padding-left:30px;">积分：<a href="{tsUrl('my','score')}">{$strUser['count_score']}</a></span>

</div>
</div>
</div>


{else}
<div class="bbox login">
<form action="{tsUrl('user','login',array('ts'=>'do'))}" method="post">
<fieldset>
<legend>登录</legend>
<div class="item">
<label>Email:</label>
<br />
<input class="form-control" type="email" name="email">
</div>
<div class="item">
<label>密码：</label>
<br />
<input class="form-control" type="password" name="pwd">
</div>

<div class="item1">
<input type="hidden" name="cktime" value="2592000" />
<input type="hidden" name="token" value="{$_SESSION['token']}" />
<button type="submit" class="btn btn-success">登录</button> 

{php doAction('home_login')}

</div>
</fieldset>
</form>
</div>
{/if}